from time import sleep
from appium import webdriver
from zoom import *

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '7'
desired_caps['devices'] = '127.0.0.1:62001'
# desired_caps['app'] = r'D:\apk\kaoyanbang.apk'
# desired_caps['appPackage'] = 'com.tal.kaoyan'
# desired_caps['appActivity'] = 'com.tal.kaoyan.ui.activity.SplashActivity'
# desired_caps['noResert'] = False
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
# 隐式等待
driver.implicitly_wait(10)
sleep(3)
bigger(driver)
sleep(3)